package com.ktjy.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ktjy.mapper.TbRulePoolMapper;
import com.ktjy.pojo.TbRulePool;
import com.ktjy.service.ITbRulePoolService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 线索池规则 服务实现类
 * </p>
 *
 * @author jjx
 * @since 2025-08-19
 */
@Service
public class TbRulePoolServiceImpl extends ServiceImpl<TbRulePoolMapper, TbRulePool> implements ITbRulePoolService {

    @Override
    public List<TbRulePool> findList(String type) {
        //查询数据
        QueryWrapper<TbRulePool> qw = new QueryWrapper<>();
        if (type != null && !type.isEmpty()) {
            qw.eq("type", type);
        }
        return list(qw);
    }
}
